<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>咨询室预约系统</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header class="page-header">
            <h1>咨询室预约</h1>
            <p class="sub-title">今日可预约时段</p>
        </header>

        <div class="rooms-container">
            <!-- 咨询室卡片 -->
            <div class="room-card" id="room1">
                <div class="room-header">
                    <h2>咨询室 A</h2>
                    <span class="room-status available">当前可预约</span>
                </div>
                <div class="room-info">
                    <div class="info-item">
                        <span class="label">今日空闲</span>
                        <span class="value">6个时段</span>
                    </div>
                    <div class="info-item">
                        <span class="label">下个空闲</span>
                        <span class="value">14:00</span>
                    </div>
                </div>
                <div class="room-schedule">
                    <div class="schedule-title">今日时段</div>
                    <div class="time-slots"></div>
                </div>
                <button class="book-btn">立即预约</button>
            </div>
            <!-- 其他咨询室卡片结构相同 -->
        </div>
    </div>

    <!-- 预约弹窗 -->
    <div class="modal" id="bookingModal">
        <div class="modal-content">
            <div class="modal-header">
                <h3>预约咨询</h3>
                <button class="close-btn">&times;</button>
            </div>
            <div class="modal-body">
                <div class="selected-info">
                    <div class="room-name">咨询室 A</div>
                    <div class="date-picker">
                        <div class="date-nav">
                            <button class="date-nav-btn prev">←</button>
                            <span class="current-date">2024年3月18日</span>
                            <button class="date-nav-btn next">→</button>
                        </div>
                    </div>
                </div>
                <div class="time-picker">
                    <div class="time-period">
                        <h4>上午</h4>
                        <div class="time-grid morning"></div>
                    </div>
                    <div class="time-period">
                        <h4>下午</h4>
                        <div class="time-grid afternoon"></div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="cancel-btn">取消</button>
                <button class="confirm-btn">确认预约</button>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html> 